package fr.cephb.operonj.tools.cmdline.remapper;

import com.sleepycat.bind.tuple.StringBinding;
import com.sleepycat.bind.tuple.TupleBinding;
import com.sleepycat.je.DatabaseConfig;
import com.sleepycat.je.DatabaseException;
import com.sleepycat.je.Environment;
import com.sleepycat.je.Transaction;

import fr.cephb.operonj.core.je.PrimaryDB;

public class SNPToInfoDB extends PrimaryDB<String, SNPInfo>
	{
	private StringBinding keyBinding= new  StringBinding();
	private SNPInfoBinding valueBinding= new  SNPInfoBinding();
	public SNPToInfoDB(Environment env, Transaction txn, String databaseName,
			DatabaseConfig dbConfig) throws DatabaseException
		{
		super(env, txn, databaseName, setSmartSorter(defaultDbCfg(env,dbConfig)));
		}

	@Override
	public TupleBinding<String> getKeyBinding()
		{
		return keyBinding;
		}

	@Override
	public TupleBinding<SNPInfo> getValueBinding()
		{
		return valueBinding;
		}

	}
